package com.SpringMVC.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author:liuwei
 * @creatdate:2022-02-21-19:04
 */
@Controller
public class HelloController {
	//"/"-->WEB-INF/templates/index.html


	@RequestMapping(value = "/")
	public String index(){
		//返回视图名称
		return "index";
	}
	@RequestMapping(value="/target")
	public String ToTarget(){
		return "target";
	}
}
